$fontSize_14: 0.8vw;
$fontSize_16: 0.9vw;
$fontSize_18: 1vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.26vw;
$fontSize_28: 1.3vw;
$fontSize_32: 1.4vw;
$fontSize_36: 1.8vw;
$fontSize_40: 2.1vw;
$fontSize_48: 2.5vw;
$fontSize_50: 2.6vw;
$fontSize_54: 2.7vw;
$fontSize_64: 3.2vw;
$fontSize_70: 3.5vw;
$fontSize_90: 4.5vw;
$fontSize_100: 5vw;
$fontSize_200: 10vw;
$f: 19.2;

.home {
  position: relative;
  width: 100%;
  padding-top: 8vw;

  .section1 {
    margin: 4vw 15vw;
    transform: scale(.95);
    .pic {
      img {
        width: 100%;
        display: block;
        object-fit: contain;
        border-radius: 100/$f+vw;
      }
    }
  }

  .section2{
    background: rgba(238, 236, 244, 0.50);
    padding: 5vw 15vw;
    .item{
      display: flex;
      justify-content: space-between;
      margin-bottom: 7vw;
      transform: scale(.95);
      .pic{
        width: 30%;
        img{
          width: 100%;
          border-radius: 120/$f+vw;
          transition: all 600ms;
        }
        &:hover{
          img{
            transform: scale(1.05);
          }
        }
      }
      .info{
        width: 65%;
        .t{
          color: #6456A3;
          font-size: $fontSize_50;
          font-style: italic;
          font-family: 'Newsreader';
        }
        .des{
          color: #999BB0;
          font-size: $fontSize_28;
          font-style: italic;
          font-family: 'Montserrat-Light';
          line-height: 1.5;
          margin: 1.5vw 0 2.5vw 0;
        }
        .nums{
          display: flex;
          justify-content: space-around;
          .i{
            text-align: center;
            .i1{
              color: #7C67D8;
              font-size: $fontSize_64;
              font-weight: 700;
            }
            .tag{
              color: #6456A3;
              font-family: 'Montserrat-Regular.otf';
              font-size: $fontSize_16;
              margin-top: 0.5vw;
            }
          }
        }
        a{
          margin-top: 5vw;
          width: fit-content;
          border-radius: 32/$f+vw;
          background: #6456A3;
          padding: 0.5vw 1vw;
          color:white;
          display: flex;
          justify-content: center;
          align-items: center;
          text-transform: capitalize;
          font-size: $fontSize_16;
          cursor: pointer;
          transition: all 600ms;
          p{
            font-family: 'Lexend';
          }
          svg{
            display: block;
            width: 25/$f+vw;
          }
          &:hover{
            background-color: #61C0BD;
          }
        }
      }
    }
    .item:nth-child(2n){
      flex-direction: row-reverse;
    }
    .item:last-child{
      margin-bottom: 0;
    }
  }

  .news {
    margin: 5vw 12vw;
    .list {
      display: flex;
      flex-wrap: wrap;
      transform: scale(.95);
      a {
        display: block;
        width: 28%;
        margin-left: 4%;
        margin-bottom: 4vw;

        .pic {
          img {
            width: 100%;
            display: block;
            object-fit: cover;
            border-radius: 30/$f+vw;
            transition: all 600ms;
          }
        }

        .text {
          margin: 2vw 1vw;

          .p1 {
            color: #6456A3;
            font-size: $fontSize_24;
            font-family: 'Montserrat-Light';
            text-transform: uppercase;
            transition: all 600ms;
            line-height: 1.4;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 5;
            overflow: hidden;
          }

          .time {
            color: #999BB0;
            font-size: $fontSize_22;
            font-style: italic;
            font-family: 'Montserrat-Light';
            width: fit-content;
            padding: 0.6vw 0 1.5vw 0;
            position: relative;

            &::after {
              content: '';
              display: block;
              position: absolute;
              bottom: 0;
              width: 70%;
              background-color: #999BB0;
              left: 0;
              height: 1px;
            }
          }

          .des {
            color: #999BB0;
            font-size: $fontSize_22;
            font-style: italic;
            font-family: 'Montserrat-Light';
            margin-top: 1vw;
            line-height: 1.4;
            word-break: break-all;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 4;
            overflow: hidden;
          }
        }

        &:hover {
          .pic {
            img {
              transform: scale(1.05);
            }
          }

          .text {
            .p1 {
              color: #61C0BD;
            }
          }
        }
      }
    }
  }





  @media screen and (max-width: 1024px) {
    padding-top: 60px;
    .section1{
      margin:20px 5%;
      transform: scale(1);
    }
       .section2{
      padding: 30px 5%;
      .item{
        flex-direction: column !important;
        margin-bottom: 30px;
        transform: scale(1);
        .pic{
          width: 100%;
        }
        .info{
          width: 100%;
          margin-top: 20px;
          .t{
            font-size: 24px;
          }
          .des{
            font-size: 18px;
          }
          .nums{
            flex-direction: column;
            .i{
              width: 100%;
              margin-bottom: 15px;
              .i1{
                font-size: 38px;
              }
              .tag{
                font-size: 14px;
                margin-top: 5px;
              }
            }
          }
          a{
            padding: 8px 20px;
            margin: 30px auto;
            p{
              font-size: 14px;
            }
            svg{
              width: auto;
            }
          }
        }
      }
    }
    .news{
      margin: 20px 5% 60px 5%;
      .list{
        transform: scale(1);
        a{
          width: 100%;
          margin-left: 0;
          margin-bottom: 20px;
          .text{
            margin: 20px 10px;
            .p1{
              font-size: 18px;
            }
            .time{
              font-size: 16px;
              padding: 5px 0 10px 0;
            }
            .des{
              font-size: 16px;
              line-height: 1.5;
              margin-top: 10px;
            }
          }
        }
      }
    }
  }
}